import { HTTP } from "./HTTP"

// 单位列表
export function getUnitInfo(data) {
  return HTTP({
    url: "/unitInfo/list",
    method: "GET",
    data
  });
}

// 申报级别
export function getdDclarationLevel(data) {
  return HTTP({
    url: "/declarationLevel/list",
    method: "GET",
    data
  });
}

// 组织类别
export function getSocialOrganizationType() {
  return HTTP({
    url: "/socialOrganizationType/list",
    method: "GET"
  });
}

// 申报级别
export function getdDclarationLevel2(data) {
  return HTTP({
    url: "/declarationSystem/getDeclarationLevels",
    method: "GET",
    data
  });
}

// 组织类别
export function getSocialOrganizationType2(data) {
  return HTTP({
    url: "/declarationSystem/getOrganizationTypes",
    method: "GET",
	data
  });
}

// 申报
export function saveDeclarationInfo(data) {
  return HTTP({
    url: "/declarationInfo",
    method: "POST",
	data
  });
}

// 申报
export function saveDeclarationInfo2(data) {
  return HTTP({
    url: "/declarationInfo",
    method: "PUT",
	data
  });
}


// 我的申报
export function getMyDeclaration(data) {
  return HTTP({
    url: "/declarationSystem/myPage",
    method: "GET",
	data
  });
}

// 申报组织详情概况
export function getDeclarationInfoDetail(id) {
  return HTTP({
    url: `/declarationInfo/getDeclarationInfoDetail/${id}`,
    method: "GET"
  });
}

// 指标树
export function getTargetManagement(data) {
  return HTTP({
    url: `/targetManagement/tree`,
    method: "GET",
	data
  });
}

// 体系详情
export function getDeclaration(id) {
  return HTTP({
    url: `/declarationSystem/${id}`,
    method: "GET",
  });
}


// 体系详情
export function getDeclarationDetail(id) {
  return HTTP({
    url: `/declarationInfo/${id}`,
    method: "GET",
  });
}

// 获取签名承诺书
export function getSignCommitmentLetter(data) {
  return HTTP({
    url: `/serviceConfiguration/getSignCommitmentLetter`,
    method: "GET",
	data
  });
}
